//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Midland - Band','John T. Floore Country Store','Helotes, TX','Friday','5/3/2024','8:30 PM','6083930','Midland---Band-5-3-2024'],['Ray Wylie Hubbard','John T. Floore Country Store','Helotes, TX','Friday','5/10/2024','8:00 PM','6288773','Ray-Wylie-Hubbard-5-10-2024'],['The Droptines','John T. Floore Country Store','Helotes, TX','Saturday','5/18/2024','8:30 PM','6346274','The-Droptines-5-18-2024'],['Cody Hibbard','John T. Floore Country Store','Helotes, TX','Saturday','5/25/2024','8:30 PM','6311869','Cody-Hibbard-5-25-2024'],['Kyle Park','John T. Floore Country Store','Helotes, TX','Saturday','6/1/2024','8:30 PM','6375135','Kyle-Park-6-1-2024'],['Kin Faux','John T. Floore Country Store','Helotes, TX','Saturday','6/8/2024','8:30 PM','6383185','Kin-Faux-6-8-2024'],['Mark Chesnutt','John T. Floore Country Store','Helotes, TX','Friday','6/14/2024','8:30 PM','6319765','Mark-Chesnutt-6-14-2024'],['Tyler Halverson','John T. Floore Country Store','Helotes, TX','Friday','6/21/2024','8:30 PM','6354116','Tyler-Halverson-6-21-2024'],['The Bellamy Brothers','John T. Floore Country Store','Helotes, TX','Friday','6/28/2024','8:30 PM','6214143','The-Bellamy-Brothers-6-28-2024'],['Flatland Cavalry','John T. Floore Country Store','Helotes, TX','Saturday','6/29/2024','8:30 PM','6340755','Flatland-Cavalry-6-29-2024'],['Carson Jeffrey','John T. Floore Country Store','Helotes, TX','Friday','7/12/2024','8:30 PM','6359297','Carson-Jeffrey-7-12-2024'],['Jon Wolfe','John T. Floore Country Store','Helotes, TX','Saturday','7/13/2024','8:30 PM','6381581','Jon-Wolfe-7-13-2024'],['Aaron Lewis','John T. Floore Country Store','Helotes, TX','Saturday','7/20/2024','8:30 PM','6269215','Aaron-Lewis-7-20-2024'],['Gary Allan','John T. Floore Country Store','Helotes, TX','Saturday','9/21/2024','8:30 PM','6327714','Gary-Allan-9-21-2024'],['Eli Young Band','John T. Floore Country Store','Helotes, TX','Saturday','10/5/2024','8:30 PM','6396703','Eli-Young-Band-10-5-2024']],'Floore Country Store','http://www.ticketnetwork.com/ticket/Floore-Country-Store-events.aspx');